package com.sjzxywlkj.cplife.alipay.request.entity;

import com.alibaba.fastjson.JSON;

/**
 * 换取授权访问令牌请求参数
 * url:https://docs.open.alipay.com/api_9/alipay.system.oauth.token/
 */

public class LoginToken {

    //表示换取，刷新令牌
    private String grant_type;
    //授权码
    private String code;
    //刷新令牌
    private String refresh_token;

    public String getGrant_type() {
        return grant_type;
    }

    public void setGrant_type(String grant_type) {
        this.grant_type = grant_type;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getRefresh_token() {
        return refresh_token;
    }

    public void setRefresh_token(String refresh_token) {
        this.refresh_token = refresh_token;
    }

    public LoginToken(String grant_type, String code, String refresh_token) {
        super();
        this.grant_type = grant_type;
        this.code = code;
        this.refresh_token = refresh_token;
    }

    public LoginToken() {
        super();
    }

    public String toJson() {
        return JSON.toJSONString(this);
    }

}
